<!DOCTYPE HTML>
<html>

<head>
        <title></title>

        <script type="text/javascript">
          function nihao () {
            var canvas;
            if ("\v"=="v")
            {
              canvas = document.getElementById("mycanvas");
              canvas = window.G_vmlCanvasManager.initElement(canvas);
            }
            else
            {
              canvas = document.getElementById("mycanvas");
            }
            if (!canvas) {
                alert("Error: I cannot find the canvas element!");
                return;
            }
            if (!canvas.getContext) {
                alert("Error: no canvas.getContext!");
                return;
            }
            var context = canvas.getContext("2d");
            if (!context) {
                alert("Error: failed to getContext!");
            }
              var tmp = "";
  
              for ( var p in canvas )
              {
                  if ( typeof(canvas[p]) == "function" )
                  {
                      tmp += canvas[p] + "<br />";
                  }
                  else
                  {
                      tmp += p + " = " + canvas[p] + "<br />";
                  }
              }
              //window.alert( tmp + "nothing" );
              document.write(tmp);
          }
        </script>

        <style type="text/css">
        </style>
</head>



<body>
        <canvas id="mycanvas" width="700" height="500"></canvas>
        <script type="text/javascript">
          nihao();
        </script>
</body>



</html>

